{extend name="base" /}
{block name="title"}
<title>设置金额-{$site_config.site_title}</title>
{/block}
{block name="body"}
	<header class="page-header1">
		<a href="javascript:;" onClick="javascript:history.back(-1);"><img src="__STATIC__/img/back02.png" class="back_img" style="float:left;"/></a>
		<h3>设置金额</h3>
	</header>
	<div class="set_up">
		<div class="set_up_center">
			<div class="merchants">商家一：果果乐超市</div>
			<div class="set_up_title"  style="border-bottom:1px solid #d2d2d2;">
				<div class="set_up_title_money">设置金额</div>
				<div class="set_up_title_write">
					<input type="text" placeholder="输入金额" class="set_up_title_inp" id="set_money"/>
				</div>
			</div>
		</div>
		<div class="prepaid_card_confirm_input btu_next">
			<div id="b_tu">提交</div>
		</div>
	</div>
	<script type="text/javascript">
    window.onload =function()
    {
        document.getElementById("b_tu").style.backgroundImage ="url(__STATIC__/img/confirm_01.png)";
         document.getElementById("b_tu").style.backgroundSize ="100% 100%";
        //鼠标悬停在按钮上时判断。
        document.getElementById("set_money").onkeyup = function()
        {
            if(document.getElementById("set_money").value=="")
            {
                document.getElementById("b_tu").style.backgroundImage ="url(__STATIC__/img/confirm_01.png)";
                document.getElementById("b_tu").style.backgroundSize ="100% 100%";
                document.getElementById("b_tu").innerHTML="下一步";
            }else
            {
                document.getElementById("b_tu").style.backgroundImage ="url(__STATIC__/img/confirm_02.png)";
                document.getElementById("b_tu").style.backgroundSize ="100% 100%";
                document.getElementById("b_tu").style.color ="#fff";
                document.getElementById("b_tu").innerHTML="下一步";
            }
        }
        //鼠标悬停在按钮上时判断。
    }
    </script>
{/block}

